<?php

namespace app\shop\model;

use app\BaseModel;

class MeetingModel extends BaseModel
{
    protected $table ='meeting';
    protected $append =['status_text'];
    public $pk ="id";

    public function getStatusTextAttr($value, $data)
    {
        $arr =[0=>'未开始',1=>'进行中',2=>'已结束'];
        return $arr[$data['status']];
    }

}